 
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%  
	String pageName = "person.jsp";	//页面名称
	String pagePath = "/jgy/menu/system/oildepot/";		 
	String pageFunc = "记录发布";		//功能描述 
%>
 

<%
	Integer sysElemId = new Integer("14");
	String dotype = "add";
	String hytzPort1 = "0";
	String hytzPort2 = "0";
	String hytzPort3 = "0";
	if(request.getParameter("hytzPort1")!=null)hytzPort1 = request.getParameter("hytzPort1");
	if(request.getParameter("hytzPort2")!=null)hytzPort2 = request.getParameter("hytzPort2");
	if(request.getParameter("hytzPort3")!=null)hytzPort3 = request.getParameter("hytzPort3");

	String listtime = "";
	String listtimee = "";
	String listdate = "";
	String listdatee = "";
	String dayofweek = "";
	String dayofweeke = "";
	if(request.getParameter("hytzKssj")!=null && request.getParameter("hytzJssj")!=null)
	{
		String temp1 = request.getParameter("hytzKssj");
		String temp2 = request.getParameter("hytzJssj");
		String temp3 = temp1.substring(11,13);
		String temp4 = temp2.substring(11,13);
		int temp5 = new Integer(temp1.substring(5,7)).intValue();
		//System.out.println(temp3);
		if(new Integer(temp3).intValue()<13)listtime += "上午";
		else listtime += "下午";
		listtime += temp1.substring(11,16) + " -- ";
		if(new Integer(temp4).intValue()<13)listtime += "上午";
		else listtime += "下午";
		listtime += temp2.substring(11,16);

		listtimee += temp1.substring(11,16);
		if(new Integer(temp3).intValue()<13)listtimee += "am";
		else listtimee += "pm";
		listtimee += " -- " + temp2.substring(11,16);
		if(new Integer(temp4).intValue()<13)listtimee += "am";
		else listtimee += "pm";

		listdate = temp1.substring(0,4) + "年" + new Integer(temp1.substring(5,7)).toString() + "月" + new Integer(temp1.substring(8,10)) + "日" ;  
		switch (temp5)
		{
			case 1:listdatee+="January";break;
			case 2:listdatee+="February";break;
			case 3:listdatee+="March";break;
			case 4:listdatee+="April";break;
			case 5:listdatee+="May";break;
			case 6:listdatee+="June";break;
			case 7:listdatee+="July";break;
			case 8:listdatee+="August";break;
			case 9:listdatee+="September";break;
			case 10:listdatee+="October";break;
			case 11:listdatee+="November";break;
			case 12:listdatee+="December";break;
		}
		listdatee += "," + new Integer(temp1.substring(8,10)) +","+ temp1.substring(0,4);

		java.util.Calendar cal = java.util.Calendar.getInstance();
		cal.clear(); cal.set(Integer.parseInt(temp1.substring(0,4)), Integer.parseInt(temp1.substring(5,7)) , Integer.parseInt(temp1.substring(8,10)));  
		int dayOfWeekint = cal.get(cal.DAY_OF_WEEK);
		System.out.println(dayOfWeekint);
		switch (dayOfWeekint)
		{
			case 5:dayofweek = "星期一";dayofweeke = "Monday"; break;
			case 6:dayofweek = "星期二";dayofweeke = "Tuesday"; break;
			case 0:dayofweek = "星期三";dayofweeke = "Wednesday"; break;
			case 1:dayofweek = "星期四";dayofweeke = "Thursday"; break;
			case 2:dayofweek = "星期五";dayofweeke = "Friday"; break;
			case 3:dayofweek = "星期六";dayofweeke = "Saturday"; break;
			case 4:dayofweek = "星期日";dayofweeke = "Sunday"; break;
		}
	}

   

%>
<html>
<head>
<title><%=pageFunc%></title>
<style>
@media print{
INPUT {display:none}
}
</style>

<script language="javascript">
function goback()
{
	window.close();
}
</script>
</head>


<body  background="/hotel/img/index/bgroud.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="800" height="600" border="0">
  <tr> 
    <td height="10">
<div align="center">
        <p>&nbsp;</p>
      </div></td>
  </tr>
  <tr> 
    <td height="71"><div align="center"><font color="#3133A0" size="+3">剀&nbsp; 
        府</font>
        <hr>
      </div></td>
  </tr>
  <tr> 
    <td height="57">
<div align="center"> <font color="#3632A3" size="5" face="Arial, Helvetica, sans-serif"><strong>the 
        residence</strong></font></div></td>
  </tr>
  <tr> 
    <td height="70"><div align="center">
<%
	if(!"".equals(request.getParameter("hytzScwjlj")))
	{
%>
	<img name="" src="<%="\\" + request.getParameter("hytzScwjlj")%>" width="160" height="90" alt="">
<%
	}
%>
	</div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#868557" size="6" face="幼圆"><%=request.getParameter("hytzLine1")%></font></div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#868557" size="5" face="宋体"><%=request.getParameter("hytzLine2")%></font></div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#868557" size="6" face="幼圆"><%=request.getParameter("hytzLine3")%></font></div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#868557" size="5" face="宋体"><%=request.getParameter("hytzLine4")%></font></div></td>
  </tr>
  <tr> 
    <td><div align="center"></div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#008400"><strong><%=listtime%> &nbsp; 
        &nbsp; &nbsp; <font face="Arial"><%=listtimee%></font></strong></font></div></td>
  </tr>
  <tr> 
    <td><div align="center"><strong><%=listdate%> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=dayofweek%></strong></div></td>
  </tr>
  <tr> 
    <td><div align="center"><font face="Arial"><%=dayofweeke%>  &nbsp; &nbsp;&nbsp;&nbsp;<%=listdatee%></font></div></td>
  </tr>
  <tr> 
    <td height="43">
<div align="center">
        <p>&nbsp;</p>
      </div></td>
  </tr>
  <tr> 
    <td><div align="center"><font color="#3E3940" size="5" face="Arial">Grand Hyatt Beijing</font></div></td>
  </tr>
  <tr> 
    <td><div align="center"></div></td>
  </tr>
 <!-- <tr> 
    <td><div align="right"><a href="javascript:goback()">返回</a>&nbsp;&nbsp;&nbsp;
	<a href="javascript:window.print()">打印</a></div></td>
  </tr>-->
</table>
</body>
</html>
